package com.sctvcloud.bazhong.http;

import android.util.ArrayMap;

import java.util.Map;

/**
 * Created by Ly on 2016/11/29.
 */
public class Params {
    protected ArrayMap<String ,Object> params;

    public Params() {
        params=new ArrayMap<String ,Object>();
    }

    public Params(ArrayMap params) {
        this.params = params;
        if(this.params==null){
            this.params=new ArrayMap<String ,Object>();
        }
    }

    public ArrayMap<String, Object> getParams() {
        return params;
    }

    public Params addParams(String key, Object obj){
        params.put(key,obj);
        return this;
    }
    public Params addParamsAll(ArrayMap<String,Object> params){
        this.params.putAll(params);
        return this;
    }
    public Params addParamsAll(Map<String,Object> params){
        this.params.putAll(params);
        return this;
    }
}
